/*
  Tên:Huỳnh Nguyễn Ngọc Hân
  MSSV:11370551
  Lớp:DHTH7DLT
  Ngày hoàn thành:28/04/2012
  */
#ifndef FRTACGIA_H
#define FRTACGIA_H

#include <QDialog>
#include "mysqlconnection.h"
#include <QMessageBox>


namespace Ui {
    class frTacGia;
}

class frTacGia : public QDialog
{
    Q_OBJECT

public:
    explicit frTacGia(QWidget *parent = 0);
    ~frTacGia();
    int m_MaTG;
    int m_rowIndex;



private:
    Ui::frTacGia *ui;
    MySqlConnection *DB;
    void loadDS();
    bool trangThai;
    QItemSelectionModel *selectionModel;
    void resetTableSelectionEvent();
    void doiButton(bool b);




private slots:
    void themTacGia();
    void suaTacGia();
    void xoaTacGia();
    void Thoat();    
    void selectRow();
    void timKiem();

};

#endif // FRTACGIA_H
